package com.zczy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 用户实名认证信息表
 * @TableName zczy_user_verified
 */
@TableName(value ="zczy_user_verified")
@Data
public class ZczyUserVerified implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer user_id;

    /**
     * 真实姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 身份证号
     */
    @TableField(value = "id_card")
    private String id_card;

    /**
     * 股权投资(1:了解,0:不了解)
     */
    @TableField(value = "equity")
    private Integer equity;

    /**
     * 个人资产
     */
    @TableField(value = "assets")
    private BigDecimal assets;

    /**
     * 投资偏好(项目分类id，多个用逗号分割)
     */
    @TableField(value = "preference")
    private String preference;

    /**
     * 个人资产（文字）
     */
    @TableField(value = "assetsStr")
    private String assetsStr;

    /**
     * 单次投资额度(文字)
     */
    @TableField(value = "quotaStr")
    private String quotaStr;

    /**
     * 单次投资额度
     */
    @TableField(value = "one_quota")
    private BigDecimal one_quota;

    /**
     * 是否通过认证（1：通过，0：未通过）
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 认证时间
     */
    @TableField(value = "certified_time")
    private String certified_time;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ZczyUserVerified other = (ZczyUserVerified) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUser_id() == null ? other.getUser_id() == null : this.getUser_id().equals(other.getUser_id()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getId_card() == null ? other.getId_card() == null : this.getId_card().equals(other.getId_card()))
            && (this.getEquity() == null ? other.getEquity() == null : this.getEquity().equals(other.getEquity()))
            && (this.getAssets() == null ? other.getAssets() == null : this.getAssets().equals(other.getAssets()))
            && (this.getPreference() == null ? other.getPreference() == null : this.getPreference().equals(other.getPreference()))
            && (this.getAssetsStr() == null ? other.getAssetsStr() == null : this.getAssetsStr().equals(other.getAssetsStr()))
            && (this.getQuotaStr() == null ? other.getQuotaStr() == null : this.getQuotaStr().equals(other.getQuotaStr()))
            && (this.getOne_quota() == null ? other.getOne_quota() == null : this.getOne_quota().equals(other.getOne_quota()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCertified_time() == null ? other.getCertified_time() == null : this.getCertified_time().equals(other.getCertified_time()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUser_id() == null) ? 0 : getUser_id().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getId_card() == null) ? 0 : getId_card().hashCode());
        result = prime * result + ((getEquity() == null) ? 0 : getEquity().hashCode());
        result = prime * result + ((getAssets() == null) ? 0 : getAssets().hashCode());
        result = prime * result + ((getPreference() == null) ? 0 : getPreference().hashCode());
        result = prime * result + ((getAssetsStr() == null) ? 0 : getAssetsStr().hashCode());
        result = prime * result + ((getQuotaStr() == null) ? 0 : getQuotaStr().hashCode());
        result = prime * result + ((getOne_quota() == null) ? 0 : getOne_quota().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCertified_time() == null) ? 0 : getCertified_time().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", user_id=").append(user_id);
        sb.append(", name=").append(name);
        sb.append(", id_card=").append(id_card);
        sb.append(", equity=").append(equity);
        sb.append(", assets=").append(assets);
        sb.append(", preference=").append(preference);
        sb.append(", assetsStr=").append(assetsStr);
        sb.append(", quotaStr=").append(quotaStr);
        sb.append(", one_quota=").append(one_quota);
        sb.append(", status=").append(status);
        sb.append(", certified_time=").append(certified_time);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}